﻿<%@ Page Language="C#" ValidateRequest="false" Inherits="FrontBasePage" %>
<%@ Import Namespace="Whir.Framework" %>
<%@ Import Namespace="Whir.Service" %>
<%@ Import Namespace="Whir.Label" %>
<script type="text/C#" runat="server">
/*

 *描述： 本文件由ezEIP模板发布引擎生成，请勿直接更改此文件！！ 

 *模板路径：C:\Z_中濠酒店集团（深圳）有限公司\pc\template\核心优势.shtml

 *生成时间：2020-06-18 17:20:24

 */

public Whir.Domain.Column PageColumn ; 
public Whir.Domain.SiteInfo PageSiteInfo ; 
public string columnid=""; 
protected void Page_Load(object sender, EventArgs e){
    columnid=Server.UrlDecode(RequestUtil.Instance.GetQueryString("columnid"));

 
    PageColumn = ServiceFactory.ColumnService.SingleOrDefault<Whir.Domain.Column>(113);
    PageSiteInfo = ServiceFactory.SiteInfoService.SingleOrDefault<Whir.Domain.SiteInfo>(2);
    Whir.Label.LabelHelper.Instance.SerColumnAndSiteInfoToChildControl(this, PageSiteInfo, PageColumn); 
    DataBind();
}
</script><!DOCTYPE html>
<html lang="zh-cn">
<head>
<!-- head Start-->
<wtl:include runat="server"      filename="head.html"></wtl:include>
<!-- head end -->
<wtl:Menu runat="server"  columnid='<%#PageColumn.ColumnId.ToInt()%>' OnlyOne="true"><ItemTemplate>
<script type="text/javascript">
   //定义栏目ID
   var navID = '<%# Container.DataRow["ColumnId"].ToReplace() %>';
</script>
</ItemTemplate></wtl:Menu>
<link rel="alternate" href="<%=Whir.Service.ServiceFactory.SiteInfoService.GetSitePath(PageSiteInfo)%>css/feature_carousel.css">
<script src="<%=Whir.Service.ServiceFactory.SiteInfoService.GetSitePath(PageSiteInfo)%>scripts/feature_carousel.min.js"></script>
</head>

<body>
<!--top-->
<wtl:include runat="server"       filename="top.html"></wtl:include>
<!--top End-->
<div class="Banner">
	<!--banner-->
	<wtl:include runat="server"      filename="banner.html"></wtl:include>
	<!--banner End-->
	<!--top-->
	<wtl:include runat="server"      filename="title.html"></wtl:include>
	<!--top End-->
</div>
<script>
var wh=$(window).outerHeight(true);
$('.Banner').height($(window).outerHeight(true));
setTimeout(function(){
	$('.Banner').addClass('active');	
},300);
</script>
<!-- banner -->
<div class="Main Advantage">
	<div class="Advbg">
		<div class="ListBG">
			<div class="w1200">
				<div class="List Pfsc">
					<div id="carousel">
						<wtl:list runat="server"  nulltip="" needpage="false" where="IsDel=0" order="sort desc,createdate desc"><ItemTemplate>
					    <div class="carousel-feature">
					      <a href="javascript:;" class="imgbox">
						      	<div class="img">
						      		<img src="<%=Whir.ezEIP.Web.SysManagePageBase.Insten.UploadFilePath %><%# Container.DataRow["ImageUrl"].ToReplace() %>" alt='<%# Container.DataRow["Title"].ToReplace() %>' class="pc">
						      		<img src="<%=Whir.ezEIP.Web.SysManagePageBase.Insten.UploadFilePath %><%# Container.DataRow["ImageUrl2"].ToReplace() %>" alt='<%# Container.DataRow["Title"].ToReplace() %>' class="wap">
						      	</div>
						      	<div class="txtBox">
						      		<div class="txtCon">
							      		<div class="num">
											<wtl:if runat="server"      testtype='<%# Container.ItemIndexFromOne %>' TestOperate="LessThan"   testvalue="9">
											<successTemplate>
											<b>0<%# ((Whir.Label.Dynamic.DynamicDataContainer)((Whir.Label.Dynamic.DynamicDataContainer)Container).Parent.Parent).ItemIndexFromOne %></b>
											</successTemplate>
											<failureTemplate>
											<b><%# ((Whir.Label.Dynamic.DynamicDataContainer)((Whir.Label.Dynamic.DynamicDataContainer)Container).Parent.Parent).ItemIndexFromOne %></b>
											</failureTemplate>
											</wtl:if>
											<em>Advantage</em>
							      		</div>
										<div class="txtWap">
											<h3 class="h3"><%# Container.DataRow["Title"].ToReplace() %></h3>
											<div class="txtWb">
												<%# Container.DataRow["BriefIntroduction"].ToReplace() %>
											</div>
										</div>
						      		</div>
						      	</div>
						   </a>
					    </div>
				        </ItemTemplate></wtl:list>

						<a href="javascript:;" class="Cbtn" id="but_prev">上一个</a>
						<a href="javascript:;" class="Cbtn CbtnR" id="but_next">下一个</a>
					</div>
				</div>

				<div class="wap-content">
					<wtl:list runat="server"  nulltip="" needpage="false" where="IsDel=0" order="sort desc,createdate desc"><ItemTemplate>
						<div class="carousel-feature">
							<a href="javascript:;" class="imgbox">
								<div class="img">
									<img src="<%=Whir.ezEIP.Web.SysManagePageBase.Insten.UploadFilePath %><%# Container.DataRow["ImageUrl"].ToReplace() %>" alt='<%# Container.DataRow["Title"].ToReplace() %>' class="pc">
									<img src="<%=Whir.ezEIP.Web.SysManagePageBase.Insten.UploadFilePath %><%# Container.DataRow["ImageUrl2"].ToReplace() %>" alt='<%# Container.DataRow["Title"].ToReplace() %>' class="wap">
								</div>
								<div class="txtBox">
									<div class="txtCon">
										<div class="num">
										<wtl:if runat="server"      testtype='<%# Container.ItemIndexFromOne %>' TestOperate="LessThan"   testvalue="9">
										<successTemplate>
										<b class="numb">0<%# ((Whir.Label.Dynamic.DynamicDataContainer)((Whir.Label.Dynamic.DynamicDataContainer)Container).Parent.Parent).ItemIndexFromOne %></b>
										</successTemplate>
										<failureTemplate>
										<b><%# ((Whir.Label.Dynamic.DynamicDataContainer)((Whir.Label.Dynamic.DynamicDataContainer)Container).Parent.Parent).ItemIndexFromOne %></b>
										</failureTemplate>
										</wtl:if>
										<em>Advantage</em>
										</div>
									<div class="txtWap">
										<h3 class="h3"><%# Container.DataRow["Title"].ToReplace() %></h3>
										<div class="txtWb">
											<%# Container.DataRow["BriefIntroduction"].ToReplace() %>
										</div>
									</div>
									</div>
								</div>
							</a>
						</div>
					</ItemTemplate></wtl:list>
				</div>

			</div>
		</div>
	</div>
</div>
<script>
   $(document).ready(function() {

		var carousel = $("#carousel").featureCarousel({
              topPadding:0,
              sidePadding:0,
              smallFeatureOffset:150,
              largeFeatureWidth:1006,
              smallFeatureWidth:600,
              largeFeatureHeight:660,
              smallFeatureHeight:350,
              autoPlay:false,
              opacitynum:1,
				// movedToCenter:function(i){
				// // console.log(i)
				// // alert($(i).index())
				// }

          });

 	$("#but_prev").click(function () {
          carousel.prev();
        });

	 $("#but_next").click(function () {
          carousel.next();
        });


  })
</script>
<!--bottom-->
<wtl:include runat="server"       filename="bottom.html"></wtl:include>
<!--bottom End-->
</body>
</html>